// 对外暴露的常量配置路由
export const constantRoute = [{
    path: "/login",
    component: () => import("@/views/login/index.vue"),
    name: "login", // 命名路由
    meta: {
      title: "登录",
      hidden: true, // 路由是否隐藏：true隐藏，false显示
      keepAlive: true,
    },
  },
  {
    path: "/auth-bind-wx",
    component: () => import("@/views/wx-auth-man/auth-bind-wx/index.vue"),
    name: "auth-bind-wx", // 命名路由
    meta: {
      title: "授权绑定微信",
      hidden: true, // 路由是否隐藏：true隐藏，false显示
      keepAlive: true,
    },
  }, {
    path: "/auth-bind-success",
    component: () => import("@/views/wx-auth-man/auth-bind-success/index.vue"),
    name: "auth-bind-success", // 命名路由
    meta: {
      title: "授权绑定微信成功",
      hidden: true, // 路由是否隐藏：true隐藏，false显示
      keepAlive: true,
    },
  },


  {
    path: "/404",
    component: () => import("@/views/404/index.vue"),
    name: "404", // 命名路由
    meta: {
      title: "404",
      hidden: true, // 路由是否隐藏：true隐藏，false显示
      keepAlive: true,
    },
  },
  {
    path: "/personal_center",
    component: () => import("@/views/layout/index.vue"),
    name: "personal_center", // 命名路由
    meta: {
      title: "个人中心",
      hidden: false, // 路由是否隐藏：true隐藏，false显示
      keepAlive: true,
      icon: "Flag",
    },
    redirect: '/welcome_page',
    children: [{
        path: '/welcome_page',
        name: "welcome_page", // 命名路由
        component: () => import("@/views/personal_center/welcome_page/index.vue"),
        meta: {
          title: "信息概览",
          hidden: false, // 路由是否隐藏：true隐藏，false显示
          keepAlive: true,
          icon: "Flag",
        },
      },


    ]
  },
  // 
  //#region 下面为异步路由
  // {
  //   path: "/information_center",
  //   component: () => import("@/views/layout/index.vue"),
  //   name: "information_center", // 命名路由
  //   meta: {
  //     title: "信息中心",
  //     hidden: false, // 路由是否隐藏：true隐藏，false显示
  // keepAlive:true,
  //     icon: "Comment",
  //   },
  //   redirect: '/dynamic_list',
  //   children: [{
  //       path: '/dynamic_list',
  //       name: "dynamic_list", // 命名路由
  //       component: () => import("@/views/information_center/dynamic_list/index.vue"),
  //       meta: {
  //         title: "动态列表",
  //         hidden: false, // 路由是否隐藏：true隐藏，false显示
  // keepAlive:true,
  //         icon: "Histogram",
  //       },
  //     },
  //     {
  //       path: '/customer_list',
  //       name: "customer_list", // 命名路由
  //       component: () => import("@/views/information_center/customer_list/index.vue"),
  //       meta: {
  //         title: "客户列表",
  //         hidden: false, // 路由是否隐藏：true隐藏，false显示
  // keepAlive:true,
  //         icon: "Avatar",
  //       },
  //     },
  //     {
  //       path: '/vehicle_trajectory',
  //       name: "vehicle_trajectory", // 命名路由
  //       component: () => import("@/views/information_center/vehicle_trajectory/index.vue"),
  //       meta: {
  //         title: "车辆轨迹",
  //         hidden: false, // 路由是否隐藏：true隐藏，false显示
  // keepAlive:true,
  //         icon: "Van",
  //       },
  //     },


  //   ]
  // },
  // {
  //   path: "/order_list",
  //   component: () => import("@/views/layout/index.vue"),
  //   name: "order_list", // 命名路由
  //   meta: {
  //     title: "业务中心",
  //     hidden: false, // 路由是否隐藏：true隐藏，false显示
  // keepAlive:true,
  //     icon: "Monitor",
  //   },
  //   redirect: '/original_order_list',
  //   children: [
  // {
  //   path: '/order_entry',
  //   name: "order_entry", // 命名路由
  //   component: () => import("@/views/order_list/order_entry/index.vue"),
  //   meta: {
  //     title: "订单录入",
  //     hidden: false, // 路由是否隐藏：true隐藏，false显示
  // keepAlive:true,
  //     icon: "DocumentCopy",
  //   },
  // },
  // {
  //   path: '/carpool_list',
  //   name: "carpool_list", // 命名路由
  //   component: () => import("@/views/order_list/carpool_list/index.vue"),
  //   meta: {
  //     title: "拼车列表",
  //     hidden: false, // 路由是否隐藏：true隐藏，false显示
  // keepAlive:true,
  //     icon: "Ticket",
  //   },
  // },
  // {
  //   path: '/order_follow-up',
  //   name: "order_follow-up", // 命名路由
  //   component: () => import("@/views/order_list/order_follow-up/index.vue"),
  //   meta: {
  //     title: "订单跟进",
  //     hidden: false, // 路由是否隐藏：true隐藏，false显示
  // keepAlive:true,
  //     icon: "SetUp",
  //   },
  // },
  // {
  //   path: '/collection_operation',
  //   name: "collection_operation", // 命名路由
  //   component: () => import("@/views/order_list/collection_operation/index.vue"),
  //   meta: {
  //     title: "线下收款",
  //     hidden: false, // 路由是否隐藏：true隐藏，false显示
  // keepAlive:true,
  //     icon: "WalletFilled",
  //   },
  // },
  // {
  //   path: '/payment_operation',
  //   name: "payment_operation", // 命名路由
  //   component: () => import("@/views/order_list/payment_operation/index.vue"),
  //   meta: {
  //     title: "付外调款",
  //     hidden: false, // 路由是否隐藏：true隐藏，false显示
  // keepAlive:true,
  //     icon: "WalletFilled",
  //   },
  // },
  // {
  //   path: '/order_grabbing_hall',
  //   name: "order_grabbing_hall", // 命名路由
  //   component: () => import("@/views/order_list/order_grabbing_hall/index.vue"),
  //   meta: {
  //     title: "抢单大厅",
  //     hidden: false, // 路由是否隐藏：true隐藏，false显示
  // keepAlive:true,
  //     icon: "House",
  //   },
  // },

  // {
  //   path: '/check_in_record_list',
  //   name: "check_in_record_list", // 命名路由
  //   component: () => import("@/views/check_in_record/check_in_record_list/index.vue"),
  //   meta: {
  //     title: "入住记录",
  //     hidden: false, // 路由是否隐藏：true隐藏，false显示
  // keepAlive:true,
  //     icon: "UserFilled",
  //   },
  // },
  // {
  //   path: '/customer_list',
  //   name: "customer_list", // 命名路由
  //   component: () => import("@/views/information_center/customer_list/index.vue"),
  //   meta: {
  //     title: "客户列表",
  //     hidden: false, // 路由是否隐藏：true隐藏，false显示
  // keepAlive:true,
  //     icon: "Avatar",
  //   },
  // },
  //     {
  //       path: '/new_original_order_list',
  //       name: "new_original_order_list", // 命名路由
  //       component: () => import("@/views/order_list/new_original_order_list/index.vue"),
  //       meta: {
  //         title: "订单列表(酒店)",
  //         hidden: false, // 路由是否隐藏：true隐藏，false显示
  // keepAlive:true,
  //         icon: "List",
  //       },
  //     },
  //     {
  //       path: '/original_order_list',
  //       name: "original_order_list", // 命名路由
  //       component: () => import("@/views/order_list/original_order_list/index.vue"),
  //       meta: {
  //         title: "订单列表",
  //         hidden: false, // 路由是否隐藏：true隐藏，false显示
  //         icon: "List",
  // keepAlive:true,
  //       },
  //     },
  //     {
  //       path: '/employee_list',
  //       name: "employee_list", // 命名路由
  //       component: () => import("@/views/human_resources_center/employee_list/index.vue"),
  //       meta: {
  //         title: "员工列表",
  //         hidden: false, // 路由是否隐藏：true隐藏，false显示
  // keepAlive:true,
  //         icon: "UserFilled",
  //       },
  //     },
  //     {
  //       path: '/payment_application_list',
  //       name: "payment_application_list", // 命名路由
  //       component: () => import("@/views/order_list/payment_application_list/index.vue"),
  //       meta: {
  //         title: "付款申请列表",
  //         hidden: false, // 路由是否隐藏：true隐藏，false显示
  // keepAlive:true,
  //         icon: "EditPen",
  //       },
  //     },
  //     {
  //       path: '/transaction_list',
  //       name: "transaction_list", // 命名路由
  //       component: () => import("@/views/transaction/transaction_list/index.vue"),
  //       meta: {
  //         title: "钱包记录",
  //         hidden: false, // 路由是否隐藏：true隐藏，false显示
  //         icon: "Checked",
  // keepAlive:true,
  //       },
  //     },



  //   ]
  // },
  // // {
  // //   path: "/transaction",
  // //   component: () => import("@/views/layout/index.vue"),
  // //   name: "transaction", // 命名路由
  // //   meta: {
  // //     title: "钱包记录",
  // //     hidden: false, // 路由是否隐藏：true隐藏，false显示
  // keepAlive:true,
  // //     icon: "Checked",
  // //   },
  // //   redirect: '/transaction_list',
  // //   children: [{
  // //       path: '/transaction_list',
  // //       name: "transaction_list", // 命名路由
  // //       component: () => import("@/views/transaction/transaction_list/index.vue"),
  // //       meta: {
  // //         title: "钱包记录",
  // //         hidden: false, // 路由是否隐藏：true隐藏，false显示
  // keepAlive:true,
  // //         icon: "Checked",
  // //       },
  // //     },


  // //   ]
  // // },




  // // {
  // //   path: "/check_in_record",
  // //   component: () => import("@/views/layout/index.vue"),
  // //   name: "check_in_record", // 命名路由
  // //   meta: {
  // //     title: "入住记录",
  // keepAlive:true,
  // //     hidden: false, // 路由是否隐藏：true隐藏，false显示
  // //     icon: "UserFilled",
  // //   },
  // //   redirect: '/check_in_record_list',
  // //   children: [{
  // //       path: '/check_in_record_list',
  // //       name: "check_in_record_list", // 命名路由
  // //       component: () => import("@/views/check_in_record/check_in_record_list/index.vue"),
  // //       meta: {
  // //         title: "入住记录",
  // //         hidden: false, // 路由是否隐藏：true隐藏，false显示
  // keepAlive:true,
  // //         icon: "UserFilled",
  // //       },
  // //     },


  // //   ]
  // // },

  // {
  //   path: "/financial_center",
  //   component: () => import("@/views/layout/index.vue"),
  //   name: "financial_center", // 命名路由
  //   meta: {
  //     title: "财务中心",
  //     hidden: false, // 路由是否隐藏：true隐藏，false显示
  // keepAlive:true,
  //     icon: "Notebook",
  //   },
  //   redirect: '/bank_statement',
  //   children: [{
  //     path: '/bank_statement',
  //     name: "bank_statement", // 命名路由
  //     component: () => import("@/views/financial_center/bank_statement/index.vue"),
  //     meta: {
  //       title: "银行流水",
  //       hidden: false, // 路由是否隐藏：true隐藏，false显示
  // keepAlive:true,
  //       icon: "Tickets",
  //     },
  //   }, {
  //     path: '/employee_reimbursement',
  //     name: "employee_reimbursement", // 命名路由
  //     component: () => import("@/views/financial_center/employee_reimbursement/index.vue"),
  //     meta: {
  //       title: "员工报账",
  //       hidden: false, // 路由是否隐藏：true隐藏，false显示
  // keepAlive:true,
  //       icon: "Memo",
  //     },
  //   }, {
  //     path: '/salary_details',
  //     name: "salary_details", // 命名路由
  //     component: () => import("@/views/financial_center/salary_details/index.vue"),
  //     meta: {
  //       title: "工资明细",
  //       hidden: false, // 路由是否隐藏：true隐藏，false显示
  // keepAlive:true,
  //       icon: "DocumentCopy",
  //     },
  //   }, {
  //     path: '/account_management',
  //     name: "account_management", // 命名路由
  //     component: () => import("@/views/financial_center/account_management/index.vue"),
  //     meta: {
  //       title: "账户管理",
  //       hidden: false, // 路由是否隐藏：true隐藏，false显示
  //       icon: "Files",
  // keepAlive:true,
  //     },
  //   }, ]
  // },
  // {
  //   path: "/security_center",
  //   component: () => import("@/views/layout/index.vue"),
  //   name: "security_center", // 命名路由
  //   meta: {
  //     title: "安全中心",
  //     hidden: false, // 路由是否隐藏：true隐藏，false显示
  // keepAlive:true,
  //     icon: "Van",
  //   },
  //   redirect: '/vehicle_list',
  //   children: [{
  //     path: '/vehicle_list',
  //     name: "vehicle_list", // 命名路由
  //     component: () => import("@/views/security_center/vehicle_list/index.vue"),
  //     meta: {
  //       title: "车辆列表",
  //       hidden: false, // 路由是否隐藏：true隐藏，false显示
  // keepAlive:true,
  //       icon: "Van",
  //     },
  //   }, ]
  // },

  // {
  //   path: "/human_resources_center",
  //   component: () => import("@/views/layout/index.vue"),
  //   name: "human_resources_center", // 命名路由
  //   meta: {
  //     title: "人力中心",
  //     hidden: false, // 路由是否隐藏：true隐藏，false显示
  // keepAlive:true,
  //     icon: "Avatar",
  //   },
  //   redirect: '/employee_list',
  //   children: [{
  //     path: '/employee_list',
  //     name: "employee_list", // 命名路由
  //     component: () => import("@/views/human_resources_center/employee_list/index.vue"),
  //     meta: {
  //       title: "员工列表",
  //       hidden: false, // 路由是否隐藏：true隐藏，false显示
  // keepAlive:true,
  //       icon: "UserFilled",
  //     },
  //   }, {
  //     path: '/leave_list',
  //     name: "leave_list", // 命名路由
  //     component: () => import("@/views/human_resources_center/leave_list/index.vue"),
  //     meta: {
  //       title: "休假列表",
  //       hidden: false, // 路由是否隐藏：true隐藏，false显示
  // keepAlive:true,
  //       icon: "Promotion",
  //     },
  //   }, ]
  // },


  // {
  //   path: "/system_management",
  //   component: () => import("@/views/layout/index.vue"),
  //   name: "system_management", // 命名路由
  //   meta: {
  //     title: "系统管理",
  //     hidden: false, // 路由是否隐藏：true隐藏，false显示
  // keepAlive:true,
  //     icon: "Setting",
  //   },
  //   redirect: '/amount_type',
  //   children: [{
  //       path: '/amount_type',
  //       name: "amount_type", // 命名路由
  //       component: () => import("@/views/system_management/amount_type/index.vue"),
  //       meta: {
  //         title: "金额类型",
  //         hidden: false, // 路由是否隐藏：true隐藏，false显示
  // keepAlive:true,
  //         icon: "TrendCharts",
  //       },
  //     }, {
  //       path: '/customer_type',
  //       name: "customer_type", // 命名路由
  //       component: () => import("@/views/system_management/customer_type/index.vue"),
  //       meta: {
  //         title: "客户类型",
  //         hidden: false, // 路由是否隐藏：true隐藏，false显示
  // keepAlive:true,
  //         icon: "Avatar",
  //       },
  //     }, {
  //       path: '/leave_type',
  //       name: "leave_type", // 命名路由
  //       component: () => import("@/views/system_management/leave_type/index.vue"),
  //       meta: {
  //         title: "休假类型",
  //         hidden: false, // 路由是否隐藏：true隐藏，false显示
  // keepAlive:true,
  //         icon: "Promotion",
  //       },
  //     }, {
  //       path: '/department_role',
  //       name: "department_role", // 命名路由
  //       component: () => import("@/views/system_management/department_role/index.vue"),
  //       meta: {
  //         title: "部门角色",
  //         hidden: false, // 路由是否隐藏：true隐藏，false显示
  // keepAlive:true,
  //         icon: "UserFilled",
  //       },
  //     }, {
  //       path: '/reimbursement_type',
  //       name: "reimbursement_type", // 命名路由
  //       component: () => import("@/views/system_management/reimbursement_type/index.vue"),
  //       meta: {
  //         title: "报账类型",
  //         hidden: true, // 路由是否隐藏：true隐藏，false显示
  // keepAlive:true,
  //         icon: "DocumentCopy",
  //       },
  //     }, {
  //       path: '/maintenance_type',
  //       name: "maintenance_type", // 命名路由
  //       component: () => import("@/views/system_management/maintenance_type/index.vue"),
  //       meta: {
  //         title: "维修类型",
  //         hidden: false, // 路由是否隐藏：true隐藏，false显示
  // keepAlive:true,
  //         icon: "WarnTriangleFilled",
  //       },
  //     }, {
  //       path: '/brand_type',
  //       name: "brand_type", // 命名路由
  //       component: () => import("@/views/system_management/brand_type/index.vue"),
  //       meta: {
  //         title: "品牌类型",
  //         hidden: true, // 路由是否隐藏：true隐藏，false显示
  // keepAlive:true,
  //         icon: "Histogram",
  //       },
  //     },


  //   ]
  // },
  // {
  //   path: "/recommend_customers",
  //   component: () => import("@/views/layout/index.vue"),
  //   name: "recommend_customers", // 命名路由
  //   meta: {
  //     title: "推荐客户",
  //     hidden: false, // 路由是否隐藏：true隐藏，false显示
  //     icon: "Checked",
  // keepAlive:true,
  //   },
  //   redirect: '/recommend_customers',
  //   children: [{
  //       path: '/recommend_customers',
  //       name: "recommend_customers", // 命名路由
  //       component: () => import("@/views/recommend_customers/recommend_customers_list/index.vue"),
  //       meta: {
  //         title: "推荐客户",
  //         hidden: false, // 路由是否隐藏：true隐藏，false显示
  // keepAlive:true,
  //         icon: "Checked",
  //       },
  //     },


  //   ]
  // },
  //#endregion


];

//#region 异步路由
//#endregion

export const asyncRoutr = [{
    path: "/information_center",
    component: () => import("@/views/layout/index.vue"),
    name: "information_center", // 命名路由
    meta: {
      title: "信息中心",
      hidden: false, // 路由是否隐藏：true隐藏，false显示
      keepAlive: true,
      icon: "Comment",
    },
    redirect: '/dynamic_list',
    children: [{
        path: '/dynamic_list',
        name: "dynamic_list", // 命名路由
        component: () => import("@/views/information_center/dynamic_list/index.vue"),
        meta: {
          title: "动态列表",
          hidden: false, // 路由是否隐藏：true隐藏，false显示
          keepAlive: true,
          icon: "Histogram",
        },
      },

      {
        path: '/vehicle_trajectory',
        name: "vehicle_trajectory", // 命名路由
        component: () => import("@/views/information_center/vehicle_trajectory/index.vue"),
        meta: {
          title: "车辆轨迹",
          keepAlive: true,
          hidden: false, // 路由是否隐藏：true隐藏，false显示
          icon: "Van",
        },
      },
      {
        path: '/customer_list',
        name: "customer_list", // 命名路由
        component: () => import("@/views/information_center/customer_list/index.vue"),
        meta: {
          title: "客户列表",
          hidden: false, // 路由是否隐藏：true隐藏，false显示
          keepAlive: true,
          icon: "Avatar",
        },
      },
      {
        path: '/customer_transaction',
        name: "customer_transaction", // 命名路由
        component: () => import("@/views/information_center/customer_transaction/index.vue"),
        meta: {
          title: "交易记录",
          hidden: false, // 路由是否隐藏：true隐藏，false显示
          keepAlive: true,
          icon: "Tickets",
        },
      },


    ]
  },
  {
    path: "/order_list",
    component: () => import("@/views/layout/index.vue"),
    name: "order_list", // 命名路由
    meta: {
      title: "业务中心",
      keepAlive: true,
      hidden: false, // 路由是否隐藏：true隐藏，false显示
      icon: "Monitor",
    },
    redirect: '/TravelAdviceFollowList',
    children: [{
        path: '/TravelAdviceFollowList',
        name: "TravelAdviceFollowList", // 命名路由
        component: () => import("@/views/order_list/TravelAdviceFollowList/index.vue"),
        meta: {
          title: "旅游包车咨询回访",
          keepAlive: true,
          hidden: false, // 路由是否隐藏：true隐藏，false显示
          icon: "Tickets",
        },
      }, {
        path: '/order_entry',
        name: "order_entry", // 命名路由
        component: () => import("@/views/order_list/order_entry/index.vue"),
        meta: {
          title: "订单录入",
          keepAlive: true,
          hidden: false, // 路由是否隐藏：true隐藏，false显示
          icon: "DocumentCopy",
        },
      },
      {
        path: '/carpool_list',
        name: "carpool_list", // 命名路由
        component: () => import("@/views/order_list/carpool_list/index.vue"),
        meta: {
          title: "拼车列表",
          keepAlive: true,
          hidden: false, // 路由是否隐藏：true隐藏，false显示
          icon: "Ticket",
        },
      },
      {
        path: '/order_follow_up',
        name: "order_follow_up", // 命名路由
        component: () => import("@/views/order_list/order_follow_up/index.vue"),
        meta: {
          title: "订单跟进",
          keepAlive: true,
          hidden: false, // 路由是否隐藏：true隐藏，false显示
          icon: "SetUp",
        },
      },
      {
        path: '/collection_operation',
        name: "collection_operation", // 命名路由
        component: () => import("@/views/order_list/collection_operation/index.vue"),
        meta: {
          title: "线下收款",
          keepAlive: true,
          hidden: false, // 路由是否隐藏：true隐藏，false显示
          icon: "WalletFilled",
        },
      },
      {
        path: '/payment_operation',
        name: "payment_operation", // 命名路由
        component: () => import("@/views/order_list/payment_operation/index.vue"),
        meta: {
          title: "付外调款",
          keepAlive: true,
          hidden: false, // 路由是否隐藏：true隐藏，false显示
          icon: "WalletFilled",
        },
      },
      {
        path: '/order_grabbing_hall',
        name: "order_grabbing_hall", // 命名路由
        component: () => import("@/views/order_list/order_grabbing_hall/index.vue"),
        meta: {
          title: "抢单大厅",
          keepAlive: true,
          hidden: false, // 路由是否隐藏：true隐藏，false显示
          icon: "House",
        },
      },

      {
        path: '/check_in_record_list',
        name: "check_in_record_list", // 命名路由
        component: () => import("@/views/check_in_record/check_in_record_list/index.vue"),
        meta: {
          title: "入住记录",
          keepAlive: true,
          hidden: false, // 路由是否隐藏：true隐藏，false显示
          icon: "UserFilled",
        },
      },
      {
        path: '/information_center_customer_list',
        name: "information_center_customer_list", // 命名路由
        component: () => import("@/views/order_list/information_center_customer_list/index.vue"),
        meta: {
          title: "客户列表",
          keepAlive: true,
          hidden: false, // 路由是否隐藏：true隐藏，false显示
          icon: "Avatar",
        },
      },
      {
        path: '/original_order_list',
        name: "original_order_list", // 命名路由
        component: () => import("@/views/order_list/original_order_list/index.vue"),
        meta: {
          title: "订单列表",
          keepAlive: true,
          hidden: false, // 路由是否隐藏：true隐藏，false显示
          icon: "List",
        },
      },
      {
        path: '/human_resources_center_employee_list',
        name: "human_resources_center_employee_list", // 命名路由
        component: () => import("@/views/order_list/human_resources_center_employee_list/index.vue"),
        meta: {
          title: "员工列表",
          keepAlive: true,
          hidden: false, // 路由是否隐藏：true隐藏，false显示
          icon: "UserFilled",
        },
      },
      // {
      //   path: '/payment_application_list',
      //   name: "payment_application_list", // 命名路由
      //   component: () => import("@/views/order_list/payment_application_list/index.vue"),
      //   meta: {
      //     title: "付款申请列表",
      // keepAlive:true,
      //     hidden: false, // 路由是否隐藏：true隐藏，false显示
      //     icon: "EditPen",
      //   },
      // },
      {
        path: '/transaction_list',
        name: "transaction_list", // 命名路由
        component: () => import("@/views/transaction/transaction_list/index.vue"),
        meta: {
          title: "钱包记录",
          keepAlive: true,
          hidden: false, // 路由是否隐藏：true隐藏，false显示
          icon: "Checked",
        },
      },



    ]
  },
  // {
  //   path: "/transaction",
  //   component: () => import("@/views/layout/index.vue"),
  //   name: "transaction", // 命名路由
  //   meta: {
  //     title: "交易记录列表",
  // keepAlive:true,
  //     hidden: false, // 路由是否隐藏：true隐藏，false显示
  //     icon: "Checked",
  //   },
  //   redirect: '/transaction_list',
  //   children: [{
  //       path: '/transaction_list',
  //       name: "transaction_list", // 命名路由
  //       component: () => import("@/views/transaction/transaction_list/index.vue"),
  //       meta: {
  //         title: "钱包记录",
  // keepAlive:true,
  //         hidden: false, // 路由是否隐藏：true隐藏，false显示
  //         icon: "Checked",
  //       },
  //     },


  //   ]
  // },




  // {
  //   path: "/check_in_record",
  //   component: () => import("@/views/layout/index.vue"),
  //   name: "check_in_record", // 命名路由
  //   meta: {
  //     title: "入住记录",
  // keepAlive:true,
  //     hidden: false, // 路由是否隐藏：true隐藏，false显示
  //     icon: "UserFilled",
  //   },
  //   redirect: '/check_in_record_list',
  //   children: [{
  //       path: '/check_in_record_list',
  //       name: "check_in_record_list", // 命名路由
  //       component: () => import("@/views/check_in_record/check_in_record_list/index.vue"),
  //       meta: {
  //         title: "入住记录",
  // keepAlive:true,
  //         hidden: false, // 路由是否隐藏：true隐藏，false显示
  //         icon: "UserFilled",
  //       },
  //     },


  //   ]
  // },

  {
    path: "/financial_center",
    component: () => import("@/views/layout/index.vue"),
    name: "financial_center", // 命名路由
    meta: {
      title: "财务中心",
      keepAlive: true,
      hidden: false, // 路由是否隐藏：true隐藏，false显示
      icon: "Notebook",
    },
    redirect: '/bank_statement',
    children: [{
      path: '/bank_statement',
      name: "bank_statement", // 命名路由
      component: () => import("@/views/financial_center/bank_statement/index.vue"),
      meta: {
        title: "银行流水",
        keepAlive: true,
        hidden: false, // 路由是否隐藏：true隐藏，false显示
        icon: "Tickets",
      },
    }, {
      path: '/employee_reimbursement',
      name: "employee_reimbursement", // 命名路由
      component: () => import("@/views/financial_center/employee_reimbursement/index.vue"),
      meta: {
        title: "员工报账",
        keepAlive: true,
        hidden: false, // 路由是否隐藏：true隐藏，false显示
        icon: "Memo",
      },
    }, {
      path: '/salary_details',
      name: "salary_details", // 命名路由
      component: () => import("@/views/financial_center/salary_details/index.vue"),
      meta: {
        title: "工资明细",
        keepAlive: true,
        hidden: false, // 路由是否隐藏：true隐藏，false显示
        icon: "DocumentCopy",
      },
    }, {
      path: '/sumCusGathPay',
      name: "sumCusGathPay", // 命名路由
      component: () => import("@/views/financial_center/sumCusGathPay/index.vue"),
      meta: {
        title: "应收应支",
        keepAlive: true,
        hidden: false, // 路由是否隐藏：true隐藏，false显示
        icon: "CreditCard",
      },
    }, {
      path: '/platform_billing',
      name: "platform_billing", // 命名路由
      component: () => import("@/views/financial_center/platform_billing/index.vue"),
      meta: {
        title: "收平台款",
        keepAlive: true,
        hidden: false, // 路由是否隐藏：true隐藏，false显示
        icon: "DocumentCopy",
      },
    }, {
      path: '/collect_external_transfer_funds',
      name: "collect_external_transfer_funds", // 命名路由
      component: () => import("@/views/financial_center/collect_external_transfer_funds/index.vue"),
      meta: {
        title: "收外调款",
        keepAlive: true,
        hidden: false, // 路由是否隐藏：true隐藏，false显示
        icon: "DocumentCopy",
      },
    }, {
      path: '/account_management',
      name: "account_management", // 命名路由
      component: () => import("@/views/financial_center/account_management/index.vue"),
      meta: {
        title: "账户管理",
        keepAlive: true,
        hidden: false, // 路由是否隐藏：true隐藏，false显示
        icon: "Files",
      },
    }, ]
  },
  {
    path: "/security_center",
    component: () => import("@/views/layout/index.vue"),
    name: "security_center", // 命名路由
    meta: {
      title: "安全中心",
      keepAlive: true,
      hidden: false, // 路由是否隐藏：true隐藏，false显示
      icon: "Van",
    },
    redirect: '/vehicle_list',
    children: [{
      path: '/vehicle_list',
      name: "vehicle_list", // 命名路由
      component: () => import("@/views/security_center/vehicle_list/index.vue"),
      meta: {
        title: "车辆列表",
        keepAlive: true,
        hidden: false, // 路由是否隐藏：true隐藏，false显示
        icon: "Van",
      },
    }, {
      path: '/violations_and_accidents',
      name: "violations_and_accidents", // 命名路由
      component: () => import("@/views/human_resources_center/violations_and_accidents/index.vue"),
      meta: {
        title: "违章与事故",
        keepAlive: true,
        hidden: false, // 路由是否隐藏：true隐藏，false显示
        icon: "Orange",
      },
    }, ]
  },

  {
    path: "/human_resources_center",
    component: () => import("@/views/layout/index.vue"),
    name: "human_resources_center", // 命名路由
    meta: {
      title: "人力中心",
      keepAlive: true,
      hidden: false, // 路由是否隐藏：true隐藏，false显示
      icon: "Avatar",
    },
    redirect: '/employee_list',
    children: [{
        path: '/employee_list',
        name: "employee_list", // 命名路由
        component: () => import("@/views/human_resources_center/employee_list/index.vue"),
        meta: {
          title: "员工列表",
          keepAlive: true,
          hidden: false, // 路由是否隐藏：true隐藏，false显示
          icon: "UserFilled",
        },
      }, {
        path: '/leave_list',
        name: "leave_list", // 命名路由
        component: () => import("@/views/human_resources_center/leave_list/index.vue"),
        meta: {
          title: "休假列表",
          keepAlive: true,
          hidden: false, // 路由是否隐藏：true隐藏，false显示
          icon: "Promotion",
        },
      },

    ]
  },


  {
    path: "/system_management",
    component: () => import("@/views/layout/index.vue"),
    name: "system_management", // 命名路由
    meta: {
      title: "系统管理",
      keepAlive: true,
      hidden: false, // 路由是否隐藏：true隐藏，false显示
      icon: "Setting",
    },
    redirect: '/amount_type',
    children: [{
        path: '/amount_type',
        name: "amount_type", // 命名路由
        component: () => import("@/views/system_management/amount_type/index.vue"),
        meta: {
          title: "金额类型",
          keepAlive: true,
          hidden: false, // 路由是否隐藏：true隐藏，false显示
          icon: "TrendCharts",
        },
      }, {
        path: '/customer_type',
        name: "customer_type", // 命名路由
        component: () => import("@/views/system_management/customer_type/index.vue"),
        meta: {
          title: "客户类型",
          keepAlive: true,
          hidden: false, // 路由是否隐藏：true隐藏，false显示
          icon: "Avatar",
        },
      }, {
        path: '/leave_type',
        name: "leave_type", // 命名路由
        component: () => import("@/views/system_management/leave_type/index.vue"),
        meta: {
          title: "休假类型",
          keepAlive: true,
          hidden: false, // 路由是否隐藏：true隐藏，false显示
          icon: "Promotion",
        },
      }, {
        path: '/department_role',
        name: "department_role", // 命名路由
        component: () => import("@/views/system_management/department_role/index.vue"),
        meta: {
          title: "部门角色",
          keepAlive: true,
          hidden: false, // 路由是否隐藏：true隐藏，false显示
          icon: "UserFilled",
        },
      }, {
        path: '/reimbursement_type',
        name: "reimbursement_type", // 命名路由
        component: () => import("@/views/system_management/reimbursement_type/index.vue"),
        meta: {
          title: "报账类型",
          keepAlive: true,
          hidden: true, // 路由是否隐藏：true隐藏，false显示
          icon: "DocumentCopy",
        },
      }, {
        path: '/maintenance_type',
        name: "maintenance_type", // 命名路由
        component: () => import("@/views/system_management/maintenance_type/index.vue"),
        meta: {
          title: "维修类型",
          keepAlive: true,
          hidden: false, // 路由是否隐藏：true隐藏，false显示
          icon: "WarnTriangleFilled",
        },
      },
      {
        path: '/price_template',
        name: "price_template", // 命名路由
        component: () => import("@/views/system_management/price_template/index.vue"),
        meta: {
          title: "顺风车价格模板",
          keepAlive: true,
          hidden: false, // 路由是否隐藏：true隐藏，false显示
          icon: "Notebook",
        },
      },
      {
        path: '/bcPriceTemplates',
        name: "bcPriceTemplates", // 命名路由
        component: () => import("@/views/system_management/bcPriceTemplates/index.vue"),
        meta: {
          title: "包车价格模板",
          keepAlive: true,
          hidden: false, // 路由是否隐藏：true隐藏，false显示
          icon: "Memo",
        },
      },
      {
        path: '/common_addresses',
        name: "common_addresses", // 命名路由
        component: () => import("@/views/system_management/common_addresses/index.vue"),
        meta: {
          title: "常用地址",
          keepAlive: true,
          hidden: false, // 路由是否隐藏：true隐藏，false显示
          icon: "MapLocation",
        },

      },
      {
        path: '/salary_setting',
        name: "salary_setting", // 命名路由
        component: () => import("@/views/system_management/salary_setting/index.vue"),
        meta: {
          title: "工资设置",
          keepAlive: true,
          hidden: false, // 路由是否隐藏：true隐藏，false显示
          icon: "CreditCard",
        },

      },
      // 旅行社常用地址
      {
        path: '/common_addresses2',
        name: "common_addresses2", // 命名路由
        component: () => import("@/views/system_management/common_addresses2/index.vue"),
        meta: {
          title: "常用地址",
          keepAlive: true,
          hidden: false, // 路由是否隐藏：true隐藏，false显示
          icon: "MapLocation",
        },

      },
      {
        path: '/brand_type',
        name: "brand_type", // 命名路由
        component: () => import("@/views/system_management/brand_type/index.vue"),
        meta: {
          title: "品牌类型",
          keepAlive: true,
          hidden: true, // 路由是否隐藏：true隐藏，false显示
          icon: "Histogram",
        },
      },


    ]
  },
  {
    path: "/recommend_customers",
    component: () => import("@/views/layout/index.vue"),
    name: "recommend_customers", // 命名路由
    meta: {
      title: "推荐客户",
      keepAlive: true,
      hidden: false, // 路由是否隐藏：true隐藏，false显示
      icon: "Checked",
    },
    redirect: '/recommend_customers',
    children: [{
        path: '/recommend_customers',
        name: "recommend_customers", // 命名路由
        component: () => import("@/views/recommend_customers/recommend_customers_list/index.vue"),
        meta: {
          title: "推荐客户",
          keepAlive: true,
          hidden: false, // 路由是否隐藏：true隐藏，false显示
          icon: "Checked",
        },
      },


    ]
  },
  {
    path: "/vehicle_custody",
    component: () => import("@/views/layout/index.vue"),
    name: "vehicle_custody", // 命名路由
    meta: {
      title: "车辆托管",
      keepAlive: true,
      hidden: false, // 路由是否隐藏：true隐藏，false显示
      icon: "Ticket",
    },
    redirect: '/vehicle_custody',
    children: [{
        path: '/vehicle_custody',
        name: "vehicle_custody", // 命名路由
        component: () => import("@/views/vehicle_custody/vehicle_custody/index.vue"),
        meta: {
          title: "车辆托管",
          keepAlive: true,
          hidden: false, // 路由是否隐藏：true隐藏，false显示
          icon: "Ticket",
        },
      },


    ]
  },
]


// 任意路由
export const anyRouter = [{
  path: "/:pathMatch(.*)*",
  redirect: "/login",
  name: "any",
  meta: {
    title: "任意路由",
    keepAlive: true,
    hidden: true, // 路由是否隐藏：true隐藏，false显示
  },
}, ]
